﻿using Abp.Domain.Entities.Auditing;
using SingleUserMall.Authorization.Users;
using System.ComponentModel.DataAnnotations.Schema;

namespace SingleUserMall.Items
{
    /// <summary>
    /// 砍价商品详细记录
    /// </summary>
    public class BargainRecord : FullAuditedEntity<long>
    {
        /// <summary>
        /// 砍价发起Id
        /// </summary>
        public long ItemBargainId { get; set; }
        [ForeignKey("ItemBargainId")]
        public virtual ItemBargain ItemBargain { get; set; }
        /// <summary>
        /// 砍价人Id
        /// </summary>
        public long UserId { get; set; }
        /// <summary>
        /// 已砍价格
        /// </summary>
        public decimal UserReducedPrice { get; set; }
        /// <summary>
        /// 是否购买
        /// </summary>
        public bool IsBuy { get; set; }
    }
}
